<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
    String path=request.getContextPath();  
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"></base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>专家信息导入</title>
<link rel="stylesheet" href="js/plugins/jquery-ui/themes/redmond/jquery-ui.min.css" />
<link rel="stylesheet" href="js/plugins/ajaxFileUploader/ajaxfileupload.css" />
<link rel="stylesheet" href="css/layout.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/plugins/jquery-ui/ui/jquery-ui.js"></script>
<script type="text/javascript" src="js/plugins/noty/jquery.noty.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/topRight.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/top.js"></script>
<script type="text/javascript" src="js/plugins/noty/layouts/center.js"></script>
<script type="text/javascript" src="js/plugins/noty/themes/default.js"></script>
<script type="text/javascript" src="js/plugins/ajaxFileUploader/ajaxfileupload.js"></script>

<script type="text/javascript" src="js/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/expert/expert.js"></script>
<script>
    $(function() {
        setupMenu();

        setupContent();

        setupExpertImport();
    });
</script>
<style type="text/css">
#upload {
  margin-top : 5px;
}
#expertExcel {
  width : 200px;
}
#tabs {
 padding-left:5px;
}
#additonal{
 padding-top:5px;
 padding-bottom:5px;
}
#additonal select{
 width:150px;
}
#additonal textarea{
 width:300px;
}
</style>
</head>
<body>
<div id="container">
  <%@ include file="../header.jsp"%>
  <div id="mainContent">
   <div id="tabs">
    <ul>
     <li><a href="#tab">专家信息导入</a></li>
    </ul>
    <div id="tab">
      <img src="<%=basePath%>js/plugins/ajaxFileUploader/loading.gif" id="loading" style="display: none;" />
      <div id="uploadFile"><input type="file" id="expertExcel" name="expertExcel" accept="application/msexcel" style="width:300px;" /></div>
      <div id="additonal">
       <div style="margin-bottom:5px;">
       专家类别:
       <select name="excelExpert.categoryId" id="categoryId" class="text ui-widget-content ui-corner-all"></select>
       </div>
       <div>
       专家备注:
       <textarea rows="3" cols="28" name="excelExpert.remark" id="remark" class="text ui-widget-content ui-corner-all"></textarea>
       </div>
      </div>
      <div id="toolbar">
        <button id="upload">专家信息导入</button>
        <a id="templateXls" href="<%=basePath%>downloadExpertTemplate.action?type=excel" target="nul">专家信息模板下载(Excel)</a>
        <a id="templateDoc" href="<%=basePath%>downloadExpertTemplate.action?type=word" target="nul">专家信息模板下载(Word)</a>
      </div>
      <div id="nul"></div>
    </div>
  </div>
  </div>
</div>
</body>
</html>
